using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using eYap.sources.Net;
using System.Drawing;

namespace eYap.src.Forms
{
    public class ContactItem : ListViewItem
    {
        public Contact contact;

        public void AssignContact(Contact contact, int imageIndex)
        {
            this.ImageIndex = imageIndex;
            this.contact = contact;
            this.Text = contact.Name;
        }

        public void SetStatusTextColor(int availability)
        {
            if (availability == 1)
            {
                this.ForeColor = Color.Green;
            }
            else if (availability == 2)
            {
                this.ForeColor = Color.Blue;
            }
        }
    }
}
